package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}
//创建接口
interface Inter1{
    void fly();
}
//接口继承
interface Inter2 extends Inter1{
    void run();
}
interface Inter3{
    public void a();
}
//实现接口
class bird implements Inter2{
    public void run(){}
    public void fly(){}
}
//可同时实现多个接口，多实现
/*class chick implements Inter2,Inter3{
    public void run(){}
    public void fly(){}
    public void a(){}
}
 */
























